package com.douxg.learning.springboot.base.autoInjectListBean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @Description
 * @Auther douxg
 * @Date 2022/6/25 12:04
 */
@Configuration
public class AutoInjectListBeanConf {
    @Bean
    public TestList createTestList(List<TestInterface> list) {
        TestList testList = new TestList();
        testList.setTestInterfaces(list);
        return testList;
    }

}
